#include "senseVar.h"
using namespace std;

/**
 * @brief SenseVar::getQuality
 * @return Devuelve quality.
 */
string SenseVar::getQuality()
{
    return quality;
}

/**
 * @brief SenseVar::getWidth
 * @return Devuelve width.
 */
string SenseVar::getWidth()
{
    return width;
}

/**
 * @brief SenseVar::getValue1
 * @return devuelve value1
 */
double SenseVar::getValue1()
{
    return value1;
}

/**
 * @brief SenseVar::getValue2
 * @return Devuelve value2
 */
double SenseVar::getValue2()
{
    return value2;
}

/**
 * @brief SenseVar::setQuality Guardamos la variable quality.
 * @param a Dato a guardar
 */
void SenseVar::setQuality(string a)
{
    quality.clear();
    quality=a;
}

/**
 * @brief SenseVar::setWidth Guardamos la variable width.
 * @param a Dato a guardar
 */
void SenseVar::setWidth(string a)
{
    width.clear();
    width=a;
}

/**
 * @brief SenseVar::setValue Guardamos las variables value1 y value2
 * @param a Vector de dato a guardar
 */
void SenseVar::setValue(vector<string> a)
{
    if (a.size()==1)
    {
        stringstream ss(a[0]);
        ss>>value1;
        ss.str("");
    }
    else
    {
        stringstream ss;
        ss<< a[0]<<" "<<a[1];
        ss>>value1>>value2;
        ss.str("");
    }

}
